﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using FileManager_Server.BusinessLogic.WCF.ObjectContainer_Setting;
using FileManager_Server.BusinessLogic.WCF.System_Setting_Service;
using FileManager_Server.ServiceModel.DataTransfer_Model;

namespace FileManager_Server.BusinessLogic.WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "NotifyMessage_Service" in both code and config file together.
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
    public class NotifyMessage_Service : INotifyMessage_Service
    {
        public void Subscriber(UserLoginResult userLoginResult)
        {
            var systemService = ObjectContainerInstance.Instance.UnityObject_Container.GetInterfaceService<ISystemService>();
            systemService.Subscriber(userLoginResult);
        }

        public void UnSubscriber(UserLoginResult userLoginResult)
        {
            var systemService = ObjectContainerInstance.Instance.UnityObject_Container.GetInterfaceService<ISystemService>();
            systemService.UnSubscriber(userLoginResult);
        }
    }
}
